package com.ruoyi.base.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.base.mapper.BusWaterRainfallMinutedataMapper;
import com.ruoyi.base.domain.BusWaterRainfallMinutedata;
import com.ruoyi.base.service.IBusWaterRainfallMinutedataService;

/**
 * 降雨量监测数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-20
 */
@Service
public class BusWaterRainfallMinutedataServiceImpl implements IBusWaterRainfallMinutedataService 
{
    @Autowired
    private BusWaterRainfallMinutedataMapper busWaterRainfallMinutedataMapper;

    /**
     * 查询降雨量监测数据
     * 
     * @param id 降雨量监测数据主键
     * @return 降雨量监测数据
     */
    @Override
    public BusWaterRainfallMinutedata selectBusWaterRainfallMinutedataById(String id)
    {
        return busWaterRainfallMinutedataMapper.selectBusWaterRainfallMinutedataById(id);
    }

    /**
     * 查询降雨量监测数据列表
     * 
     * @param busWaterRainfallMinutedata 降雨量监测数据
     * @return 降雨量监测数据
     */
    @Override
    public List<BusWaterRainfallMinutedata> selectBusWaterRainfallMinutedataList(BusWaterRainfallMinutedata busWaterRainfallMinutedata)
    {
        return busWaterRainfallMinutedataMapper.selectBusWaterRainfallMinutedataList(busWaterRainfallMinutedata);
    }

    /**
     * 新增降雨量监测数据
     * 
     * @param busWaterRainfallMinutedata 降雨量监测数据
     * @return 结果
     */
    @Override
    public int insertBusWaterRainfallMinutedata(BusWaterRainfallMinutedata busWaterRainfallMinutedata)
    {
        return busWaterRainfallMinutedataMapper.insertBusWaterRainfallMinutedata(busWaterRainfallMinutedata);
    }

    /**
     * 修改降雨量监测数据
     * 
     * @param busWaterRainfallMinutedata 降雨量监测数据
     * @return 结果
     */
    @Override
    public int updateBusWaterRainfallMinutedata(BusWaterRainfallMinutedata busWaterRainfallMinutedata)
    {
        return busWaterRainfallMinutedataMapper.updateBusWaterRainfallMinutedata(busWaterRainfallMinutedata);
    }

    /**
     * 批量删除降雨量监测数据
     * 
     * @param ids 需要删除的降雨量监测数据主键
     * @return 结果
     */
    @Override
    public int deleteBusWaterRainfallMinutedataByIds(String[] ids)
    {
        return busWaterRainfallMinutedataMapper.deleteBusWaterRainfallMinutedataByIds(ids);
    }

    /**
     * 删除降雨量监测数据信息
     * 
     * @param id 降雨量监测数据主键
     * @return 结果
     */
    @Override
    public int deleteBusWaterRainfallMinutedataById(String id)
    {
        return busWaterRainfallMinutedataMapper.deleteBusWaterRainfallMinutedataById(id);
    }
}
